Ext.define('DragonApp.store.OperationStore', {
  extend: 'Ext.data.TreeStore',

  alias: 'store.operation',

  root: {
    expanded: true,
    text: '用户操作',
    children: [
      { text: '发道具及邮件', iconCls: 'x-fa fa-envelope-o',  id: 1,  leaf: true},
      { text: '公告管理', expanded: true,   id: 2,
        iconCls: 'x-fa fa-comment-o',
        children: [
          { text: '新增公告',   id: 20,   iconCls: 'x-fa fa-plus', leaf: true  },
          { text: '编辑公告',   id: 21,   iconCls: 'x-fa fa-pencil-square-o',  leaf: true  },
          { text: '删除公告',   id: 22,   iconCls: 'x-fa fa-minus', leaf: true  },
          { text: '批量删除',   id: 23,   iconCls: 'x-fa fa-minus-square',  leaf: true  }
          ]
      },
      { text: '广播聊天', expanded: true,   id: 3,
        iconCls: 'x-fa fa-volume-up',
        children: [
          { text: '新增广播',   id: 30,   iconCls: 'x-fa fa-plus', leaf: true  },
          { text: '编辑广播',   id: 31,   iconCls: 'x-fa fa-pencil-square-o',  leaf: true  },
          { text: '删除广播',   id: 32,   iconCls: 'x-fa fa-minus', leaf: true  },
          { text: '批量删除',   id: 33,   iconCls: 'x-fa fa-minus-square',  leaf: true  }
          ]
      },
      { text: '封号禁言', expanded: true,   id: 4,
        iconCls: 'x-fa fa-user-times',
        children: [
          { text: '封号',       id: 40,   glyph: 'xf256@FontAwesome', leaf: true },
          { text: '解除封号',   id: 41,   glyph: 'xf25b@FontAwesome', leaf: true },
          { text: '禁言',       id: 42,   glyph: 'xf05e@FontAwesome', leaf: true },
          { text: '解除禁言',   id: 43,   glyph: 'xf086@FontAwesome', leaf: true }
          ]
      },
      { text: '白名单管理', expanded: true,  id: 5,
        iconCls: 'x-fa fa-file-excel-o',
        children: [
          { text: '添加白名单',     id: 50,   iconCls: 'x-fa fa-plus', leaf: true },
          { text: '编辑白名单',     id: 51,   iconCls: 'x-fa fa-pencil-square-o',  leaf: true },
          { text: '删除白名单',     id: 52,   iconCls: 'x-fa fa-minus', leaf: true },
          { text: '批量删除',       id: 53,   iconCls: 'x-fa fa-minus-square',  leaf: true }
          ]
      },
      { text: '服务器管理', expanded: true,  id: 6,
        iconCls: 'x-fa fa-server',
        children: [
          { text: '开服',     id: 61,   iconCls: 'x-fa fa-youtube-play',  leaf: true },
          { text: '关服',     id: 60,   iconCls: 'x-fa fa-ban',           leaf: true },
          { text: '停服',     id: 62,   iconCls: 'x-fa fa-minus-square',  leaf: true },
          { text: '批量操作',     id: 63,   iconCls: 'x-fa fa-list-ol',  leaf: true }
          ]
      },
      { text: '礼包码管理', expanded: true,  id: 7,
        iconCls: 'x-fa fa-gift',
        children: [
          { text: '添加礼包码',    id: 70,   iconCls: 'x-fa fa-plus', leaf: true },
          { text: '删除礼包码',    id: 71,   iconCls: 'x-fa fa-minus',leaf: true }
          ]
      }
    ]
  }
 });